package com.ynwt.model.ycoin;

import com.alibaba.fastjson.annotation.JSONField;
import com.ynwt.model.BasePlace;

/**
 * Created by huangying on 2017/5/30.
 */
public class YcoinRankItem extends BasePlace {

    private String unionid;

    private long ycoin;

    private String nickname;

    @JSONField(name = "head_img_url")
    private String headImgUrl;

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    public long getYcoin() {
        return ycoin;
    }

    public void setYcoin(long ycoin) {
        this.ycoin = ycoin;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        YcoinRankItem that = (YcoinRankItem) o;

        return ycoin == that.ycoin;
    }

    @Override
    public int hashCode() {
        return (int) (ycoin ^ (ycoin >>> 32));
    }
}
